Component({
  properties: {
    isTimReady: {
      type: Boolean,
      value: false
    }
  },
  data: {
    value: '',
    isAnimation: false
  },
  methods: {
    handleConfirm(event) {
      this.triggerEvent('send', event.detail.value)
      this.setData({
        value: ''
      })
    },
    handleBack() {
      this.triggerEvent('back')
    },
    handleAnimation() {
      this.setData({
        isAnimation: true
      })
      setTimeout(() => {
        this.setData({
          isAnimation: false
        })
      }, 800)
      this.triggerEvent('like')
    },
    handleGift() {
      this.triggerEvent('gift')
    },
    handleGood() {
      this.triggerEvent('good')
    }
  }
})
